﻿using SQLite;

namespace FileImportSystem2.Db.Entities;

/// <summary>
/// 出港账单数据实体
/// </summary>
public class OutboundInvoiceData
{


    /// <summary>
    /// 日期
    /// </summary>
    public string 日期 { get; set; } = null!; // "yyyy-MM-dd"

    /// <summary>
    /// 单号
    /// </summary>
    [PrimaryKey]
    public string 单号 { get; set; } = string.Empty;

    public string 交件时间 { get; set; } = string.Empty;

    /// <summary>
    /// 结算对象
    /// </summary>
    public string 结算对象 { get; set; } = string.Empty;

    /// <summary>
    /// 分部
    /// </summary>
    public string 分部 { get; set; } = string.Empty;

    /// <summary>
    /// 电子面单账号名称
    /// </summary>
    public string 电子面单账号名称 { get; set; } = string.Empty;


    public double 总费用_元 { get; set; }

    /// <summary>
    /// 派费合计
    /// </summary>
    public Double 派费合计 { get; set; }

    /// <summary>
    /// 中转费合计
    /// </summary>
    public Double 中转费合计 { get; set; }

    public Double 退件中转费 { get; set; }
    public Double 退件操作费 { get; set; }
    public Double 退件费 { get; set; }
    public double 中心中转费 { get; set; }

    /// <summary>
    /// 结算重量(kg)
    /// </summary>
    public Double 结算重量_kg { get; set; }

    public string 目的地省 { get; set; } = string.Empty;
    public string 目的地市 { get; set; } = string.Empty;
    public string 面单使用网点 { get; set; } = string.Empty;

    
    /// <summary>
    /// 是否匹配成功
    /// </summary>
    public int IsMatched { get; set; } = 0;// 0: 未匹配, 1: 已匹配

    /// <summary>
    /// 导入时间
    /// </summary>
    public string ImportTime { get; set; } = string.Empty;


    public string 备注1 { get; set; } = string.Empty;
    public string 备注2 { get; set; } = string.Empty;
    public string 备注3 { get; set; } = string.Empty;

}